All Questions
24 questions
2votes
0answers
43views
JavaScript Linter in Java
I wrote a simple Linter that checks for matching opening and closing braces for one line of JavaScript. It utilizes a stack to store opening braces found in the line, then compares the first closing ...
2votes
2answers
192views
Parking places design
I got a question: Design a parking system. There are 3 types of parking spaces: big, medium and small. Implement ParkingSystem class(int big, int medium, int small)....
2votes
0answers
185views
Design a parking lot [closed]
I have tried to design the parking lot problem. Here is the problem statement. Design a parking lot with multiple floors where customers can park their cars. Each parking floor will have many parking ...
2votes
2answers
85views
(Java) Read .txt and organize activities for hours / minutes
Doubts in logic to generate the output file according to the example I need that even if he reaches the total_min <720 condition he continues to travel the lines. 720 is the total number of minutes ...
3votes
1answer
462views
How to design shopping cart Java application which satisfy modular, extensible and maintainable
I am new in Application Design. I have use-case as below As per the above story I have implemented code as below without any Modularity, Extensible and Maintainable. Could someone share the thoughts ...
4votes
1answer
339views
Object-Oriented Breadth-First Search Implementation
My goal is to write a GUI application where a user can create a maze and select an algorithm. The passage of the algorithm from a selected start and end point should be visualized. The following ...
3votes
1answer
1kviews
Word Chain Implementation
The idea originaes from the CodeKata19, find a word chain for two words of a wordlist example 1 turning lead into gold: ...
3votes
2answers
472views
Java console banking
So I wanted to write a basic console based banking app to practice my skills. It makes use of BigDecimal to ensure accuracy. Here is the MVP I plan to enhance it with all banking features soon. I ...
1vote
1answer
2kviews
Deque implementation with array in Java
I'm trying to implement a deque data structure with an iterator in Java using array. Please help to review and point out things that I can improve on. ...
1vote
1answer
629views
Website Spell Checker in Java - follow-up
After receiving some great feedback on my original program, I tried to implement everything that was shared and I just want to see if there's anything else that I can change to make my program clean ...
2votes
1answer
610views
Jesse and Cookies
Jesse loves cookies. He wants the sweetness of all his cookies to be greater than value K. To do this, Jesse repeatedly mixes two cookies with the least sweetness. ...
3votes
1answer
3kviews
Simple Calculator in Java and Swing
I'm new at this and I'm almost done with learning basic Java. I made this just to see if I could do it. I just want to know if there's anything I can do to make it better. ...
1vote
1answer
122views
Finding pair in an array with the OO approach
Description: I am trying to solve algorithmic problems mixing them with Object oriented design as part of my interview preparation. So, the question is given an array of integers find the pair of ...
6votes
4answers
666views
Count number of nodes in a binary tree the OO way
I am trying to write a simplify the algorithm of finding the number of nodes in a binary tree by using good object oriented design. I have been into good OOP style recently and found it really ...
3votes
1answer
5kviews
A*, Uniform cost and Greedy Best first search implementations
I am writing the code for A*, Uniform cost search and Greedy best first search algorithms in Java. I have finished the code which is working fine but I have used a bit different design strategy while ...